/*This file is part of Sandbox.

Sandbox is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.

Sandbox is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Sandbox.  If not, see <http://www.gnu.org/licenses/>.

For contact, see the About page of my blog: <http://mygeekyware.wordpress.com/>.*/

#include <iostream>
#include "controlador.h"
#include "definiciones.h"
#include <SDL/SDL.h>
#include <SDL/SDL_events.h>
#include "particula.h"
#include <math.h>

int controlador::get_weight(int tipo) {
    switch(tipo) {
        case WALL:
            return 1000;
            break;
        case WATER:
            return 2;
            break;
        case SALT:
            return 4;
            break;
        case SAND:
            return 4;
            break;
        case STONE:
            return 4;
            break;
        case SALTWATER:
            return 3;
            break;
        case FIRE:
            return 0;
            break;
        case EARTH:
            return 4;
            break;
        case STEAM:
            return 0;
            break;
        case ICE:
            return 20;
            break;
        case MAGMA:
            return 3;
            break;
        case FIREWORK:
            return 0;
            break;
        case TORCH:
            return 20;
            break;
        case BOMB:
            return 20;
            break;
        case FUSE:
            return 20;
            break;
        case OIL:
            return 1;
            break;
    }
}